// @ts-ignore
/* eslint-disable */
import request from '@/services/request';

/** 我的消息 GET /v1/messages/count-unread */
export async function messageV1ControllerCountUnread(options?: { [key: string]: any }) {
  return request<API.MessageCountUnreadResult>('/v1/messages/count-unread', {
    method: 'GET',
    ...(options || {}),
  });
}

/** 我的消息 GET /v1/messages/mine */
export async function messageV1ControllerIndexMine(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.MessageV1ControllerIndexMineParams,
  options?: { [key: string]: any },
) {
  return request<{ total: number; list: API.MessageIndexResult[] }>('/v1/messages/mine', {
    method: 'GET',
    params: {
      // pageSize has a default value: 20
      pageSize: '20',
      ...params,
    },
    ...(options || {}),
  });
}
